package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class ScannTest {
    public static void main(String[] args) {
        int age=29;
        String name="老刘";
        //next,nextLine
        Scanner in=new Scanner(System.in);
        System.out.println("请输入你的年龄：");
        age=in.nextInt();
        //in.nextLine();
        System.out.println("请输入一句话：");
        String msg=in.nextLine();// ""
        System.out.println(msg+","+msg.length());
    }
}
